package com.pojo;

import javax.xml.crypto.Data;
import java.math.BigDecimal;

/**
 * @Author hjb
 * @Version 1.0
 * @Contact 1754729389@qq.com
 */
public class Tour {
//    tour_id INT PRIMARY KEY AUTO_INCREMENT,
//    tour_code VARCHAR(20) UNIQUE,
//    tour_maxNumber INT DEFAULT 20,
//    tour_departureTime DATETIME NOT NULL,
//    tour_deadline DATETIME NOT NULL,
//    tour_state CHAR(1) NOT NULL DEFAULT 0,
//    tour_destination VARCHAR(20) NOT NULL,
//    tour_basicPrice DOUBLE(6,2) NOT NULL
    private Integer id;
    private String name;
    private String code;
    private Integer maxNumber;
    private String departureTime;
    private String deadline;
    private String state;
    private String destination;
    private String image = "/static/images/tour/01_tour.jpg";
    private BigDecimal basicPrice;

    public Tour() {
    }

    public Tour(Integer id, String name, String code, Integer maxNumber, String departureTime, String deadline, String state, String destination, String image, BigDecimal basicPrice) {
        this.id = id;
        this.name = name;
        this.code = code;
        this.maxNumber = maxNumber;
        this.departureTime = departureTime;
        this.deadline = deadline;
        this.state = state;
        this.destination = destination;
        this.image = image;
        this.basicPrice = basicPrice;
    }

    public Tour(String name, String code, Integer maxNumber, String departureTime, String deadline, String state, String destination, String image, BigDecimal basicPrice) {
        this.name = name;
        this.code = code;
        this.maxNumber = maxNumber;
        this.departureTime = departureTime;
        this.deadline = deadline;
        this.state = state;
        this.destination = destination;
        this.image = image;
        this.basicPrice = basicPrice;
    }

    public Tour(String name, String code, Integer maxNumber, String departureTime, String deadline, String destination, String image, BigDecimal basicPrice) {
        this.name = name;
        this.code = code;
        this.maxNumber = maxNumber;
        this.departureTime = departureTime;
        this.deadline = deadline;
        this.destination = destination;
        this.image = image;
        this.basicPrice = basicPrice;
    }

    @Override
    public String toString() {
        return "Tour{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", code='" + code + '\'' +
                ", maxNumber=" + maxNumber +
                ", departureTime='" + departureTime + '\'' +
                ", deadline='" + deadline + '\'' +
                ", state='" + state + '\'' +
                ", destination='" + destination + '\'' +
                ", image='" + image + '\'' +
                ", basicPrice=" + basicPrice +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getMaxNumber() {
        return maxNumber;
    }

    public void setMaxNumber(Integer maxNumber) {
        this.maxNumber = maxNumber;
    }

    public String getDepartureTime() {
        return departureTime;
    }

    public void setDepartureTime(String departureTime) {
        this.departureTime = departureTime;
    }

    public String getDeadline() {
        return deadline;
    }

    public void setDeadline(String deadline) {
        this.deadline = deadline;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getDestination() {
        return destination;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public BigDecimal getBasicPrice() {
        return basicPrice;
    }

    public void setBasicPrice(BigDecimal basicPrice) {
        this.basicPrice = basicPrice;
    }
}
